package com.ruoyi.service.impl;

import com.ruoyi.domain.Welfareinstitution;
import com.ruoyi.mapper.WelfareinstitutionMapper;
import com.ruoyi.service.IWelfareinstitutionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * WelfareinstitutionService业务层处理
 * 
 * @author wjy
 * @date 2025-01-11
 */
@Service
public class WelfareinstitutionServiceImpl implements IWelfareinstitutionService 
{
    @Autowired
    private WelfareinstitutionMapper welfareinstitutionMapper;

    /**
     * 查询Welfareinstitution
     * 
     * @param institutionId Welfareinstitution主键
     * @return Welfareinstitution
     */
    @Override
    public Welfareinstitution selectWelfareinstitutionByInstitutionId(Long institutionId)
    {
        return welfareinstitutionMapper.selectWelfareinstitutionByInstitutionId(institutionId);
    }

    /**
     * 查询Welfareinstitution列表
     * 
     * @param welfareinstitution Welfareinstitution
     * @return Welfareinstitution
     */
    @Override
    public List<Welfareinstitution> selectWelfareinstitutionList(Welfareinstitution welfareinstitution)
    {
        return welfareinstitutionMapper.selectWelfareinstitutionList(welfareinstitution);
    }

    /**
     * 新增Welfareinstitution
     * 
     * @param welfareinstitution Welfareinstitution
     * @return 结果
     */
    @Override
    public int insertWelfareinstitution(Welfareinstitution welfareinstitution)
    {
        return welfareinstitutionMapper.insertWelfareinstitution(welfareinstitution);
    }

    /**
     * 修改Welfareinstitution
     * 
     * @param welfareinstitution Welfareinstitution
     * @return 结果
     */
    @Override
    public int updateWelfareinstitution(Welfareinstitution welfareinstitution)
    {
        return welfareinstitutionMapper.updateWelfareinstitution(welfareinstitution);
    }

    /**
     * 批量删除Welfareinstitution
     * 
     * @param institutionIds 需要删除的Welfareinstitution主键
     * @return 结果
     */
    @Override
    public int deleteWelfareinstitutionByInstitutionIds(Long[] institutionIds)
    {
        return welfareinstitutionMapper.deleteWelfareinstitutionByInstitutionIds(institutionIds);
    }

    /**
     * 删除Welfareinstitution信息
     * 
     * @param institutionId Welfareinstitution主键
     * @return 结果
     */
    @Override
    public int deleteWelfareinstitutionByInstitutionId(Long institutionId)
    {
        return welfareinstitutionMapper.deleteWelfareinstitutionByInstitutionId(institutionId);
    }
}
